package com.hou.apizuul;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 白名单配置管理类
 */
@Component
public class BasicConf {
    //白名单,可从数据库读取并缓存,提供动态刷新
    private static List<String> apiList=new ArrayList<>();
    static{
        //apiList.add("/service-order/order/name");
    }
    public static List<String> getApiList() {
        return apiList;
    }
    public static void setApiList(List<String> apiList) {
        BasicConf.apiList = apiList;
    }
}
